package org.example.cet.demos.service;

import org.example.cet.demos.domain.PageBean;
import org.example.cet.demos.domain.dto.PaperDto;
import org.example.cet.demos.domain.dto.PapersDto;
import org.example.cet.demos.domain.po.Options;
import org.example.cet.demos.domain.po.Papers;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.cet.demos.domain.po.Questions;
import org.example.cet.demos.domain.query.ClassroomQuery;
import org.example.cet.demos.domain.query.PapersQuery;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hq
 * @since 2024-12-18
 */
public interface IPapersService extends IService<Papers> {
//    List<PaperDto> getPaper(Long id);
//    List<PapersDto> getList();
    PageBean getPage(PapersQuery papersQuery);

    List<Map<String,Object>> getPaper(Long id);

    void delete(Long id);

    int insertPaper(Papers paper);
    int insertQuestion(Questions question);
    void insertOptions(Options options);

    List<PapersDto> getPaperList();


    String handleFileUpload(MultipartFile file, String title, String paperType, String year, String answer);
//    List<Questions> getQuestionsByType(int type);
//    List<Questions> getQuestionsByPaperId(int paperId);
}
